package com.wufun.overseas.tools.socket.entity;

/**
 * Author: hest
 * Date:  2016/5/23
 * Socket 一些配置信息
 */
public class SocketConfig {
    //端口号
    public static final int SERVER_PORT = 4010;
    //Socket 连接超时
    public static final int SOCKET_CONNECTED_TIME_OUT = 10 * 1000;
    //Socket 连接超时
    public static final int SOCKETSERVER_CONNECTED_TIME_OUT = 15 * 1000;
    //Socket 缓存区大小
    public static final int TCP_BUFFER_SIZE=1024*1024;
    //Socket 心跳检测超时时间
    public static final int HEART_BEAT_TIME_OUT = 5 * 1000;
    //客户端标识
    public static final int SOCKET_CLIENT_FLAG=1;
    //服务端标识
    public static final int SOCKET_SERVER_FLAG=2;
    //断开连接
    public static final String SOCKET_DIS_CONNECTED="dis";

}
